package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.utils.Result;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService {
    Result<Employee> login(HttpServletRequest request, String username, String password);

    Result<String> logout(HttpServletRequest request);

    Result<String> addOne(HttpServletRequest request, Employee employee);

    Result<Page<Employee>> getPage(String name, int currentPage, int pageSize);

    Result<String> update(HttpServletRequest request, Employee employee);

    Result<Employee> getById(Long id);
}
